<!DOCTYPE html>
<html>
    <head>
        <#include "../../common.ftl">
        <link rel="stylesheet" href="${ctx}/lib/layui/css/layui.css" media="all">
        <link rel="stylesheet" href="${ctx}/css/public.css" media="all">
    </head>
    <body class="childrenBody">
        <form class="layui-form" style="width:80%;">
            <#-- 设置借阅列表ID的隐藏域 -->
            <input type="hidden" name="id" value="${(lendDTO.id)!}">

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">借阅人</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" name="readerName" id="readerName"  value="${(lendDTO.readerName)!}" placeholder="请输入客户名称">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">书名</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input"  name="bookName" id="bookName" value="${(lendDTO.bookName)!}" placeholder="请输入书名">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">图书状态</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="bookStatus" name="bookStatus" value="${(lendDTO.bookStatus)!}" id="bookStatus" placeholder="请输入图书状态">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">借阅日期</label>
                <div class="layui-input-block">
                    <input type="date" class="layui-input" name="lendDate" value="${((lendDTO.lendDate)?date?string("yyyy-MM-dd"))!}" placeholder="请输入借阅日期">
                </div>
            </div>
            <div class="layui-form-item layui-row layui-col-xs12">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-lg" lay-submit=""  lay-filter="addOrUpdate">确认 </button>
                    <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
                </div>
            </div>
        </form>

    </body>
    <script src="${ctx}/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${ctx}/js/syt/add.update.js"></script>
</html>